<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
</html>

<script type="text/javascript">
	// 声明一个类
	class Person {
		// 定义构造器
		constructor(name, age) {
			this.name = name;
			this.age = age;
			this.className = '人类';
		}
		
		// 定义方法
		say() {
			console.log(this.name);			
		}
	}
	
	let person = new Person('小姐姐', 18);
	console.log(person);
	
	
	class Man extends Person {
		constructor(name, age, height) {
			super(name,age);
			this.height = height;
		}
	}
	
	let man = new Man('zs', 20, 180);
	console.log(man);
	
</script>